<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>nunchuk transmitter: nRF24L01 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">nunchuk transmitter
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">nRF24L01 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="classn_r_f24_l01-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4392a317b65252b3d620a6c557f5f148"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a4392a317b65252b3d620a6c557f5f148">nRF24L01</a> ()</td></tr>
<tr class="memitem:aa436e2da2244f8b76c102683272d5fa8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#aa436e2da2244f8b76c102683272d5fa8">nRF24L01</a> (uint8_t ch, uint8_t pl)</td></tr>
<tr class="memitem:a46c2fc5ad6598ededbecdbcb2cee5209"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a46c2fc5ad6598ededbecdbcb2cee5209">init</a> ()</td></tr>
<tr class="memdesc:a46c2fc5ad6598ededbecdbcb2cee5209"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes MCU to communicate with nRF25L01 module.  <a href="#a46c2fc5ad6598ededbecdbcb2cee5209"></a><br/></td></tr>
<tr class="memitem:a83264df097487d6d4ecb2b35bb94f8ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a83264df097487d6d4ecb2b35bb94f8ab">maskIRQ</a> (uint8_t irq)</td></tr>
<tr class="memdesc:a83264df097487d6d4ecb2b35bb94f8ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables specified interrupts.  <a href="#a83264df097487d6d4ecb2b35bb94f8ab"></a><br/></td></tr>
<tr class="memitem:a764e54b67b24aeffea0876141725b492"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a764e54b67b24aeffea0876141725b492">powerUp</a> ()</td></tr>
<tr class="memdesc:a764e54b67b24aeffea0876141725b492"><td class="mdescLeft">&#160;</td><td class="mdescRight">Powers up the nRF.  <a href="#a764e54b67b24aeffea0876141725b492"></a><br/></td></tr>
<tr class="memitem:ab24900f30e454d1b8658aed8951e5c0a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ab24900f30e454d1b8658aed8951e5c0a">powerDown</a> ()</td></tr>
<tr class="memdesc:ab24900f30e454d1b8658aed8951e5c0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Powers down the nRF.  <a href="#ab24900f30e454d1b8658aed8951e5c0a"></a><br/></td></tr>
<tr class="memitem:a5b915f035b128a17b4d625a99870c66e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a5b915f035b128a17b4d625a99870c66e">setCRC</a> (uint8_t crc)</td></tr>
<tr class="memdesc:a5b915f035b128a17b4d625a99870c66e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets up the CRC for the nRF.  <a href="#a5b915f035b128a17b4d625a99870c66e"></a><br/></td></tr>
<tr class="memitem:a7711544550f7e550c7d237c707733e4e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a7711544550f7e550c7d237c707733e4e">enableAutoAcknowledge</a> (uint8_t datapipes)</td></tr>
<tr class="memdesc:a7711544550f7e550c7d237c707733e4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable Enhanced ShockBurst Auto Acknowledge for the specified datapipes.  <a href="#a7711544550f7e550c7d237c707733e4e"></a><br/></td></tr>
<tr class="memitem:aa2ef2be88d4802495172126b1824d1ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#aa2ef2be88d4802495172126b1824d1ec">enableRXDatapipes</a> (uint8_t datapipes)</td></tr>
<tr class="memdesc:aa2ef2be88d4802495172126b1824d1ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the specified datapipes.  <a href="#aa2ef2be88d4802495172126b1824d1ec"></a><br/></td></tr>
<tr class="memitem:a0bc2975ae5cdbf1438cd391260349f64"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a0bc2975ae5cdbf1438cd391260349f64">setAddressWidth</a> (uint8_t addressWidth)</td></tr>
<tr class="memdesc:a0bc2975ae5cdbf1438cd391260349f64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the width of addresses for all data pipes.  <a href="#a0bc2975ae5cdbf1438cd391260349f64"></a><br/></td></tr>
<tr class="memitem:a722dc7a3e25964386acc815ce35cda46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a722dc7a3e25964386acc815ce35cda46">setupRetransmit</a> (uint8_t val)</td></tr>
<tr class="memdesc:a722dc7a3e25964386acc815ce35cda46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the Auto Transmit Delay and the number of retransmits.  <a href="#a722dc7a3e25964386acc815ce35cda46"></a><br/></td></tr>
<tr class="memitem:ad51e0ef24f71b5155f80cd9abb752fc4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ad51e0ef24f71b5155f80cd9abb752fc4">setChannel</a> (uint8_t ch)</td></tr>
<tr class="memdesc:ad51e0ef24f71b5155f80cd9abb752fc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the frequency channel <a class="el" href="classn_r_f24_l01.html">nRF24L01</a> operates on.  <a href="#ad51e0ef24f71b5155f80cd9abb752fc4"></a><br/></td></tr>
<tr class="memitem:a835d79477f6d01ce0a0fb865799a2b01"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a835d79477f6d01ce0a0fb865799a2b01">getChannel</a> (uint8_t ch)</td></tr>
<tr class="memdesc:a835d79477f6d01ce0a0fb865799a2b01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the frequency channel <a class="el" href="classn_r_f24_l01.html">nRF24L01</a> operates on.  <a href="#a835d79477f6d01ce0a0fb865799a2b01"></a><br/></td></tr>
<tr class="memitem:a539b8247127dd40fe71902d16c696633"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a539b8247127dd40fe71902d16c696633">setupRF</a> (uint8_t val)</td></tr>
<tr class="memdesc:a539b8247127dd40fe71902d16c696633"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup Data rate &amp; output power.  <a href="#a539b8247127dd40fe71902d16c696633"></a><br/></td></tr>
<tr class="memitem:ac7b8c99a09146999ca229da28a22edbc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ac7b8c99a09146999ca229da28a22edbc">updateStatus</a> ()</td></tr>
<tr class="memdesc:ac7b8c99a09146999ca229da28a22edbc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates status of <a class="el" href="classn_r_f24_l01.html">nRF24L01</a>.  <a href="#ac7b8c99a09146999ca229da28a22edbc"></a><br/></td></tr>
<tr class="memitem:afe25c0ecd22624960b59611409fbae02"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#afe25c0ecd22624960b59611409fbae02">dataReady</a> ()</td></tr>
<tr class="memdesc:afe25c0ecd22624960b59611409fbae02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if data is available for reading.  <a href="#afe25c0ecd22624960b59611409fbae02"></a><br/></td></tr>
<tr class="memitem:ad7985720f3d6dfd1c641505207be5522"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ad7985720f3d6dfd1c641505207be5522">clearInterrupt</a> (uint8_t interrupt)</td></tr>
<tr class="memdesc:ad7985720f3d6dfd1c641505207be5522"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears specified interrupt.  <a href="#ad7985720f3d6dfd1c641505207be5522"></a><br/></td></tr>
<tr class="memitem:ac4dc2e7256c1698877b3b51514c821bf"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ac4dc2e7256c1698877b3b51514c821bf">getLostPacketCount</a> ()</td></tr>
<tr class="memdesc:ac4dc2e7256c1698877b3b51514c821bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of lost packets.  <a href="#ac4dc2e7256c1698877b3b51514c821bf"></a><br/></td></tr>
<tr class="memitem:ad4bf459baa15057e7b4e761aee3d2362"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ad4bf459baa15057e7b4e761aee3d2362">getRetransmitPacketCount</a> ()</td></tr>
<tr class="memdesc:ad4bf459baa15057e7b4e761aee3d2362"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of retransmitted packets.  <a href="#ad4bf459baa15057e7b4e761aee3d2362"></a><br/></td></tr>
<tr class="memitem:a59115f6293757f9789caa4c40c051d85"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a59115f6293757f9789caa4c40c051d85">carrierDetected</a> ()</td></tr>
<tr class="memdesc:a59115f6293757f9789caa4c40c051d85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for carrier.  <a href="#a59115f6293757f9789caa4c40c051d85"></a><br/></td></tr>
<tr class="memitem:a225b0e2e380f86d846b96af343c3380b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a225b0e2e380f86d846b96af343c3380b">setRXAddress</a> (uint8_t *address)</td></tr>
<tr class="memitem:abf3f5c8e5f7f8f409eec13056be56b7a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#abf3f5c8e5f7f8f409eec13056be56b7a">setRXAddress</a> (uint8_t dataPipe, uint8_t *address)</td></tr>
<tr class="memitem:adcbfc14dcdbfc5d7ef840a471e41f91c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#adcbfc14dcdbfc5d7ef840a471e41f91c">setTXAddress</a> (uint8_t *address)</td></tr>
<tr class="memdesc:adcbfc14dcdbfc5d7ef840a471e41f91c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the transmit address.  <a href="#adcbfc14dcdbfc5d7ef840a471e41f91c"></a><br/></td></tr>
<tr class="memitem:ac6558318d4e55b6a79f2796047f0d9fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ac6558318d4e55b6a79f2796047f0d9fe">setPayloadLength</a> (uint8_t length)</td></tr>
<tr class="memdesc:ac6558318d4e55b6a79f2796047f0d9fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the length of the payload to be in data pipe 0.  <a href="#ac6558318d4e55b6a79f2796047f0d9fe"></a><br/></td></tr>
<tr class="memitem:a467c306a3f9fa0e394cc30b8d8b53e3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a467c306a3f9fa0e394cc30b8d8b53e3e">setPayloadLength</a> (uint8_t dataPipe, uint8_t length)</td></tr>
<tr class="memdesc:a467c306a3f9fa0e394cc30b8d8b53e3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the length of the payload to be in specified data pipe.  <a href="#a467c306a3f9fa0e394cc30b8d8b53e3e"></a><br/></td></tr>
<tr class="memitem:a6139cb9b9c20430ac13a5de9811d916f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a6139cb9b9c20430ac13a5de9811d916f">isTXFull</a> ()</td></tr>
<tr class="memdesc:a6139cb9b9c20430ac13a5de9811d916f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns full status of TX_FIFO buffer.  <a href="#a6139cb9b9c20430ac13a5de9811d916f"></a><br/></td></tr>
<tr class="memitem:ab5876a6b80e5e9fade8b8d5a7985913e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ab5876a6b80e5e9fade8b8d5a7985913e">isTXEmpty</a> ()</td></tr>
<tr class="memdesc:ab5876a6b80e5e9fade8b8d5a7985913e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns empty status of tX_FIFO buffer.  <a href="#ab5876a6b80e5e9fade8b8d5a7985913e"></a><br/></td></tr>
<tr class="memitem:aaefd1ad94f4b27f9fa957bce03e96a16"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#aaefd1ad94f4b27f9fa957bce03e96a16">isRXFull</a> ()</td></tr>
<tr class="memdesc:aaefd1ad94f4b27f9fa957bce03e96a16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns full status of RX_FIFO buffer.  <a href="#aaefd1ad94f4b27f9fa957bce03e96a16"></a><br/></td></tr>
<tr class="memitem:a140024e311c9b64aeb381bb6076059b1"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a140024e311c9b64aeb381bb6076059b1">isRXEmpty</a> ()</td></tr>
<tr class="memdesc:a140024e311c9b64aeb381bb6076059b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns empty status of RX FIFO buffer.  <a href="#a140024e311c9b64aeb381bb6076059b1"></a><br/></td></tr>
<tr class="memitem:ae0d0977ad5ed69d14ed41e3ab10652e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ae0d0977ad5ed69d14ed41e3ab10652e1">enableDynamicPayloadLength</a> (uint8_t datapipes)</td></tr>
<tr class="memdesc:ae0d0977ad5ed69d14ed41e3ab10652e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables dynamic payload length on specified datapipes.  <a href="#ae0d0977ad5ed69d14ed41e3ab10652e1"></a><br/></td></tr>
<tr class="memitem:a61d5abec43f3e46b18e3ca22f848ae03"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a61d5abec43f3e46b18e3ca22f848ae03">enableDPL</a> ()</td></tr>
<tr class="memdesc:a61d5abec43f3e46b18e3ca22f848ae03"><td class="mdescLeft">&#160;</td><td class="mdescRight">enables dynamic payload length  <a href="#a61d5abec43f3e46b18e3ca22f848ae03"></a><br/></td></tr>
<tr class="memitem:a48c43c5c5fabfc9fa75323316e5e0d5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a48c43c5c5fabfc9fa75323316e5e0d5e">enableACKPayload</a> ()</td></tr>
<tr class="memdesc:a48c43c5c5fabfc9fa75323316e5e0d5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables payload with ACK.  <a href="#a48c43c5c5fabfc9fa75323316e5e0d5e"></a><br/></td></tr>
<tr class="memitem:a3e68a295f5848e2cf3194c7462676e9d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a3e68a295f5848e2cf3194c7462676e9d">enableDynamicACK</a> ()</td></tr>
<tr class="memdesc:a3e68a295f5848e2cf3194c7462676e9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the NRF24L01_W_TX_PAYLOAD_NACK command.  <a href="#a3e68a295f5848e2cf3194c7462676e9d"></a><br/></td></tr>
<tr class="memitem:af044e93bfbee8a3362479318a43f93e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#af044e93bfbee8a3362479318a43f93e1">clearFeature</a> ()</td></tr>
<tr class="memdesc:af044e93bfbee8a3362479318a43f93e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears feature register.  <a href="#af044e93bfbee8a3362479318a43f93e1"></a><br/></td></tr>
<tr class="memitem:aa5e0e8a467af8cfcf264442f4d87411c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#aa5e0e8a467af8cfcf264442f4d87411c">readPayload</a> (uint8_t *datain)</td></tr>
<tr class="memitem:a7fdf8f83f4f5a402f22aee6a20a7b581"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a7fdf8f83f4f5a402f22aee6a20a7b581">sendPayload</a> (uint8_t *dataout, uint8_t length)</td></tr>
<tr class="memdesc:a7fdf8f83f4f5a402f22aee6a20a7b581"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends out a multiple-byte payload.  <a href="#a7fdf8f83f4f5a402f22aee6a20a7b581"></a><br/></td></tr>
<tr class="memitem:ace8af8e299a991fb913ecad5155f6bbf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#ace8af8e299a991fb913ecad5155f6bbf">setMode</a> (uint8_t)</td></tr>
<tr class="memdesc:ace8af8e299a991fb913ecad5155f6bbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets power up and RX/TX modes in CONFIG register.  <a href="#ace8af8e299a991fb913ecad5155f6bbf"></a><br/></td></tr>
<tr class="memitem:a3d52b9fd9632d996f1bc84448fdc08f8"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#a3d52b9fd9632d996f1bc84448fdc08f8">getMode</a> ()</td></tr>
<tr class="memdesc:a3d52b9fd9632d996f1bc84448fdc08f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve mode.  <a href="#a3d52b9fd9632d996f1bc84448fdc08f8"></a><br/></td></tr>
<tr class="memitem:a990987b803e0d3215410c2d748840943"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a990987b803e0d3215410c2d748840943"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>interruptHandler</b> (void)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa47c2eea0705d99f9515043892a11f85"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa47c2eea0705d99f9515043892a11f85"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classn_r_f24_l01.html#aa47c2eea0705d99f9515043892a11f85">status</a></td></tr>
<tr class="memdesc:aa47c2eea0705d99f9515043892a11f85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updated every time a command is sent to the <a class="el" href="classn_r_f24_l01.html">nRF24L01</a>. <br/></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4392a317b65252b3d620a6c557f5f148"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nRF24L01::nRF24L01 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Basic constructor. Sets default channel and payload length. </p>

</div>
</div>
<a class="anchor" id="aa436e2da2244f8b76c102683272d5fa8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nRF24L01::nRF24L01 </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Custom constructor. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">ch</td><td>Custom channel. </td></tr>
    <tr><td class="paramname">pl</td><td>Custom payload length. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a59115f6293757f9789caa4c40c051d85"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::carrierDetected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for carrier. </p>
<dl class="section return"><dt>Returns:</dt><dd>1 if carrier detected. </dd></dl>

</div>
</div>
<a class="anchor" id="af044e93bfbee8a3362479318a43f93e1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::clearFeature </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears feature register. </p>
<p>Disables: Dynamic Payload Length, Payload with ACK and the W_TX_PAYLOAD_NACK command. </p>

</div>
</div>
<a class="anchor" id="ad7985720f3d6dfd1c641505207be5522"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::clearInterrupt </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>interrupt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears specified interrupt. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">interrupt</td><td>Valid values are: NRF24L01_RX_DR, NRF24L01_TX_DS, NRF24L01_MAX_RT </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afe25c0ecd22624960b59611409fbae02"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::dataReady </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if data is available for reading. </p>
<dl class="section return"><dt>Returns:</dt><dd>0 if in TX mode or there is no data in the RX FIFO 1 if there is data in the RX FIFO to be read </dd></dl>

</div>
</div>
<a class="anchor" id="a48c43c5c5fabfc9fa75323316e5e0d5e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::enableACKPayload </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables payload with ACK. </p>
<p>If ACK packet payload is activated, ACK packets have dynamic payload lengths, and the Dynamic Payload Length feature should be enabled for pipe 0 on the PTX and PRX. This is to ensure that they receive the ACK packets with payloads. If the payload in ACK is more than 15 byte in 2Mbps mode, the ARD must be 500μS or more. If the payload is more than 5 byte in 1Mbps mode the ARD must be 500μS or more. </p>

</div>
</div>
<a class="anchor" id="a7711544550f7e550c7d237c707733e4e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::enableAutoAcknowledge </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>datapipes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable Enhanced ShockBurst Auto Acknowledge for the specified datapipes. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">datapipes</td><td>Valid bit values: 1&lt;&lt;NRF24L01_ENAA_P0, 1&lt;&lt;NRF24L01_ENAA_P1, etc. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a61d5abec43f3e46b18e3ca22f848ae03"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::enableDPL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enables dynamic payload length </p>

</div>
</div>
<a class="anchor" id="a3e68a295f5848e2cf3194c7462676e9d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::enableDynamicACK </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the NRF24L01_W_TX_PAYLOAD_NACK command. </p>

</div>
</div>
<a class="anchor" id="ae0d0977ad5ed69d14ed41e3ab10652e1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::enableDynamicPayloadLength </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>datapipes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables dynamic payload length on specified datapipes. </p>
<p>DYNPD register function  </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">datapipes</td><td>Valid bit values: 1&lt;&lt;NRF24L01_DPL_P0, 1&lt;&lt;NRF24L01_DPL_P1, etc. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa2ef2be88d4802495172126b1824d1ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::enableRXDatapipes </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>datapipes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable the specified datapipes. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">datapipes</td><td>Valid bit values: 1&lt;&lt;NRF24L01_ERX_P0, 1&lt;&lt;NRF24L01_ERX_P1, etc. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a835d79477f6d01ce0a0fb865799a2b01"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::getChannel </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the frequency channel <a class="el" href="classn_r_f24_l01.html">nRF24L01</a> operates on. </p>
<p>Reads from the RF_CH register. 1 MHz steps. Freq = 2400 + RF_CH [MHz]. </p>
<dl class="section return"><dt>Returns:</dt><dd>Channel. Must be between 0 and 127(0x7F). </dd></dl>

</div>
</div>
<a class="anchor" id="ac4dc2e7256c1698877b3b51514c821bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::getLostPacketCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns number of lost packets. </p>
<p>Resets when channel is set. Maximum value of 15. </p>
<dl class="section return"><dt>Returns:</dt><dd>Number of lost packets. </dd></dl>

</div>
</div>
<a class="anchor" id="a3d52b9fd9632d996f1bc84448fdc08f8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::getMode </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve mode. </p>
<dl class="section return"><dt>Returns:</dt><dd>NRF24L01_MODE_TX or NRF24L01_MODE_RX </dd></dl>

</div>
</div>
<a class="anchor" id="ad4bf459baa15057e7b4e761aee3d2362"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::getRetransmitPacketCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns number of retransmitted packets. </p>
<p>Resets when transmission of a new packet starts. </p>
<dl class="section return"><dt>Returns:</dt><dd>Number of retransmitted packets. </dd></dl>

</div>
</div>
<a class="anchor" id="a46c2fc5ad6598ededbecdbcb2cee5209"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes MCU to communicate with nRF25L01 module. </p>
<p>Initializes MCU pins, interrupt, and SPI module. Should be called during startup. </p>

</div>
</div>
<a class="anchor" id="a140024e311c9b64aeb381bb6076059b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::isRXEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns empty status of RX FIFO buffer. </p>
<dl class="section return"><dt>Returns:</dt><dd>1 if RX FIFO buffer is empty, 0 if data in RX FIFO buffer. </dd></dl>

</div>
</div>
<a class="anchor" id="aaefd1ad94f4b27f9fa957bce03e96a16"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::isRXFull </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns full status of RX_FIFO buffer. </p>
<dl class="section return"><dt>Returns:</dt><dd>1 if RX FIFO buffer is full, 0 if there are available locations. </dd></dl>

</div>
</div>
<a class="anchor" id="ab5876a6b80e5e9fade8b8d5a7985913e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::isTXEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns empty status of tX_FIFO buffer. </p>
<dl class="section return"><dt>Returns:</dt><dd>1 if TX FIFO buffer is empty, 0 if data in TX FIFO buffer. </dd></dl>

</div>
</div>
<a class="anchor" id="a6139cb9b9c20430ac13a5de9811d916f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t nRF24L01::isTXFull </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns full status of TX_FIFO buffer. </p>
<dl class="section return"><dt>Returns:</dt><dd>1 if TX FIFO buffer is full, 0 if there are available locations. </dd></dl>

</div>
</div>
<a class="anchor" id="a83264df097487d6d4ecb2b35bb94f8ab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::maskIRQ </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>irq</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables specified interrupts. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">irq</td><td>Specifies which interrupts to disable. To disable all 3 interrupts: (1&lt;&lt;NRF24L01_MASK_RX_DR | 1&lt;&lt;NRF24L01_MASK_TX_DS | 1&lt;&lt;NRF24L01_MASK_MAX_RT) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab24900f30e454d1b8658aed8951e5c0a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::powerDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Powers down the nRF. </p>
<p>Clears the PWR_UP bit of the CONFIG register to low. </p>

</div>
</div>
<a class="anchor" id="a764e54b67b24aeffea0876141725b492"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::powerUp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Powers up the nRF. </p>
<p>Sets the PWR_UP bit of the CONFIG register to high. </p>

</div>
</div>
<a class="anchor" id="aa5e0e8a467af8cfcf264442f4d87411c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::readPayload </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>datain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read RX-Payload, length is determined by function <a class="el" href="classn_r_f24_l01.html#ac6558318d4e55b6a79f2796047f0d9fe" title="Sets the length of the payload to be in data pipe 0.">setPayloadLength()</a>. Starts with byte 0. Payload is deleted by <a class="el" href="classn_r_f24_l01.html">nRF24L01</a> after it is read. Data Ready (RX_DR) bit of STATUS register is reset. Used in RX mode. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">datain</td><td>Pointer to be filled with payload. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7fdf8f83f4f5a402f22aee6a20a7b581"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::sendPayload </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>dataout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends out a multiple-byte payload. </p>
<p>Sets mode to TX, flushes TX FIFO, writes payload to TX FIFO, begins transmission. 1–32 bytes. Always starts at byte 0 used in TX payload. Adds to TX FIFO if not empty. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataout</td><td>Pointer to data to be sent. </td></tr>
    <tr><td class="paramname">length</td><td>Number of bytes in dataout. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0bc2975ae5cdbf1438cd391260349f64"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setAddressWidth </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>addressWidth</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the width of addresses for all data pipes. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">addressWidth</td><td>Valid values: NRF24L01_AW_3BYTES, NRF24L01_AW_4BYTES, NRF24L01_AW_5BYTES </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad51e0ef24f71b5155f80cd9abb752fc4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setChannel </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the frequency channel <a class="el" href="classn_r_f24_l01.html">nRF24L01</a> operates on. </p>
<p>Writes to the RF_CH register. 1 MHz steps. Freq = 2400 + RF_CH [MHz]. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">ch</td><td>Channel. Must be between 0 and 127(0x7F). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5b915f035b128a17b4d625a99870c66e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setCRC </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>crc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets up the CRC for the nRF. </p>
<p>Cyclic redundancy check can either be off, 1-byte or 2-bytes. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">crc</td><td>Valid values: NRF24L01_CRC_OFF, NRF24L01_CRC_1BYTE, NRF24L01_CRC_2BYTE </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ace8af8e299a991fb913ecad5155f6bbf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setMode </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets power up and RX/TX modes in CONFIG register. </p>
<dl class="section return"><dt>Returns:</dt><dd>NRF24L01_MODE_TX or NRF24L01_MODE_RX </dd></dl>

</div>
</div>
<a class="anchor" id="ac6558318d4e55b6a79f2796047f0d9fe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setPayloadLength </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the length of the payload to be in data pipe 0. </p>
<p>1-32 bytes long. </p>

</div>
</div>
<a class="anchor" id="a467c306a3f9fa0e394cc30b8d8b53e3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setPayloadLength </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>dataPipe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the length of the payload to be in specified data pipe. </p>
<p>1-32 bytes long. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataPipe</td><td>Index of data pipe (0-5). </td></tr>
    <tr><td class="paramname">length</td><td>Length of specified data pipe (1-32). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a225b0e2e380f86d846b96af343c3380b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setRXAddress </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>address</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the receive address of data pipe 0. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">address</td><td>The 5-byte address to assign to data pipe 0. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abf3f5c8e5f7f8f409eec13056be56b7a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setRXAddress </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>dataPipe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>address</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the receive address of any data pipe. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataPipe</td><td>Value 0 through 5 representing the index of the datapipe to be addressed. </td></tr>
    <tr><td class="paramname">address</td><td>The 5-byte address to assign to data pipe 0. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="adcbfc14dcdbfc5d7ef840a471e41f91c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setTXAddress </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>address</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the transmit address. </p>
<p>Used for a PTX (primary transmit) device only. Set the receive address of data pipe 0 to the same address to handle automatic acknowledge if this is a PTX device with Enhanced Shockburst enabled. (see <a class="el" href="classn_r_f24_l01.html">nRF24L01</a> datasheet) </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">address</td><td>The 5-byte address to assign to data pipe 0. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a722dc7a3e25964386acc815ce35cda46"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setupRetransmit </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the Auto Transmit Delay and the number of retransmits. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">val</td><td>Valid bit values: bits 7:4 are the auto retransmit delay. 0000 = 250uS, 0001 = 500uS .... 1111 = 4000uS (xxxx&lt;&lt;NRF24L01_ARD) where xxxx is the 4-bit value bits 3:0 are Auto Retransmit Count 0000 = disabled, 0001 = Up to 1 .... 1111 Up to 15 Re-Transmit on fail of AA (xxxx&lt;&lt;NRF24L01_ARC) where xxxx is the 4-bit value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a539b8247127dd40fe71902d16c696633"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::setupRF </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setup Data rate &amp; output power. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">val</td><td>Valid values: NRF24L01_RF_DR_1MHZ, NRF24L01_RF_DR_2MHZ, NRF24L01_RF_PWR_18DB, NRF24L01_RF_PWR_12DB, NRF24L01_RF_PWR_6DB, NRF24L01_RF_PWR_0DB, NRF24L01_LNA_HCURR </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac7b8c99a09146999ca229da28a22edbc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nRF24L01::updateStatus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Updates status of <a class="el" href="classn_r_f24_l01.html">nRF24L01</a>. </p>
<p>Sends a NOP command to <a class="el" href="classn_r_f24_l01.html">nRF24L01</a>, receiving STATUS back, which is written to the public variable status. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/myQ_2/Google Drive/Atmel Studio/my includes/<a class="el" href="n_r_f24_l01_8h_source.html">nRF24L01.h</a></li>
<li>C:/Users/myQ_2/Google Drive/Atmel Studio/my includes/nRF24L01.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Nov 18 2013 06:16:39 for nunchuk transmitter by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
